76615aa64af25fafd889a30c38755f09a1175edc,lessonbuilder/tool/src/java/org/sakaiproject/lessonbuildertool/tool/producers/ShowPageProducer.java,ShowPageProducer,fillComponents,#UIContainer#ViewParameters#ComponentChecker#,369
Before Change
UILink.make(tofill, "directurl").
decorate(new UIFreeAttributeDecorator("rel", "#Main" + Web.escapeJavascript(placement.getId()) + "_directurl")).
decorate(new UIFreeAttributeDecorator("title", messageLocator.getMessage("simplepage.direct-link")));
if (inline) {
UIOutput.make(tofill, "directurl-div").
decorate(new UIFreeAttributeDecorator("id", "Main" + Web.escapeJavascript(placement.getId()) + "_directurl"));
UIOutput.make(tofill, "directurl-input").
decorate(new UIFreeAttributeDecorator("onclick", "toggleShortUrlOutput('" + myUrl() + "/portal/directtool/" + placement.getId() + "/', this, 'Main" + Web.escapeJavascript(placement.getId()) + "_urlholder');"));
UIOutput.make(tofill, "directurl-textarea", myUrl() + "/portal/directtool/" + placement.getId() + "/").
decorate(new UIFreeAttributeDecorator("class", "portlet title-tools Main" + Web.escapeJavascript(placement.getId()) + "_urlholder"));
} else
UIOutput.make(tofill, "directimage").decorate(new UIFreeAttributeDecorator("alt",
messageLocator.getMessage("simplepage.direct-link")));
}
if (reseturl != null) {
After Change
UIOutput.make(tofill, "directurl-input").
decorate(new UIFreeAttributeDecorator("onclick", "toggleShortUrlOutput('" + myUrl() + "/portal/directtool/" + placement.getId() + "/', this, 'Main" + Web.escapeJavascript(placement.getId()) + "_urlholder');"));
UIOutput.make(tofill, "directurl-textarea", myUrl() + "/portal/directtool/" + placement.getId() + "/").
decorate(new UIFreeAttributeDecorator("class", "portlet title-tools Main" + Web.escapeJavascript(placement.getId()) + "_urlholder"));
// } else
UIOutput.make(tofill, "directimage").decorate(new UIFreeAttributeDecorator("alt",
messageLocator.getMessage("simplepage.direct-link")));
}
if (reseturl != null) {